package com.itstudio.myforumsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itstudio.myforumsystem.entity.Article;
import com.itstudio.myforumsystem.entity.Comment;
import com.itstudio.myforumsystem.entity.Type;
import com.itstudio.myforumsystem.mapper.ArticleMapper;
import com.itstudio.myforumsystem.mapper.CommentMapper;
import com.itstudio.myforumsystem.mapper.TypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentService extends ServiceImpl<CommentMapper, Comment> implements IService<Comment> {
@Autowired
private CommentMapper commentMapper;

    public List<Comment> findCommentDetail(Integer articleId) {
        return commentMapper.findCommentDetail(articleId);

    }
}
